package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

import java.util.List;
import java.util.Map;

/**
    * 电梯驱动方式
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_elevator_drive_mode")
public class ElevatorDriveMode extends BaseEntity {

	/**
	 * 父级id
	 */
	@TableField(value = "parent_id")
	private Long parentId;

    /**
     * 设备代码前4位
     */
    @TableField(value = "code")
    private String code;

    /**
     * 驱动方式名称
     */
    @TableField(value = "`name`")
    private String name;

	/**
	 * 对应字段Json
	 */
	@TableField(value = "field_template",typeHandler = JacksonTypeHandler.class)
	private List<Map<String,Object>> fieldTemplate;
}
